.class public Lde/dealdoktor/app/activities/Details$DealPagerAdapter;
.super Lde/dealdoktor/app/activities/SuperDetails$DealPagerAdapter;
.source "Details.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lde/dealdoktor/app/activities/Details;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "DealPagerAdapter"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lde/dealdoktor/app/activities/Details$DealPagerAdapter$GetPostsTask;
    }
.end annotation


# instance fields
.field private context:Landroid/content/Context;

.field private isLoading:Z

.field final synthetic this$0:Lde/dealdoktor/app/activities/Details;


# direct methods
.method public constructor <init>(Lde/dealdoktor/app/activities/Details;Landroid/content/Context;Landroid/support/v4/app/FragmentManager;)V
    .locals 1
    .parameter
    .parameter "context"
    .parameter "fm"

    .prologue
    .line 120
    iput-object p1, p0, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->this$0:Lde/dealdoktor/app/activities/Details;

    .line 117
    invoke-direct {p0, p3}, Lde/dealdoktor/app/activities/SuperDetails$DealPagerAdapter;-><init>(Landroid/support/v4/app/FragmentManager;)V

    .line 118
    iput-object p2, p0, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->context:Landroid/content/Context;

    .line 119
    const/4 v0, 0x0

    iput-boolean v0, p0, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->isLoading:Z

    return-void
.end method

.method static synthetic access$1(Lde/dealdoktor/app/activities/Details$DealPagerAdapter;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 113
    iput-boolean p1, p0, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->isLoading:Z

    return-void
.end method

.method static synthetic access$2(Lde/dealdoktor/app/activities/Details$DealPagerAdapter;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 114
    iget-object v0, p0, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->context:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public bridge synthetic destroyItem(Landroid/view/View;ILjava/lang/Object;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    invoke-super {p0, p1, p2, p3}, Lde/dealdoktor/app/activities/SuperDetails$DealPagerAdapter;->destroyItem(Landroid/view/View;ILjava/lang/Object;)V

    return-void
.end method

.method public getCount()I
    .locals 1

    .prologue
    .line 124
    sget-object v0, Lde/dealdoktor/app/App;->posts:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Landroid/support/v4/app/Fragment;
    .locals 3
    .parameter "position"

    .prologue
    .line 130
    iget-boolean v1, p0, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->isLoading:Z

    if-nez v1, :cond_0

    add-int/lit8 v1, p1, 0x3

    invoke-virtual {p0}, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->getCount()I

    move-result v2

    if-lt v1, v2, :cond_0

    .line 131
    new-instance v1, Lde/dealdoktor/app/activities/Details$DealPagerAdapter$GetPostsTask;

    invoke-direct {v1, p0}, Lde/dealdoktor/app/activities/Details$DealPagerAdapter$GetPostsTask;-><init>(Lde/dealdoktor/app/activities/Details$DealPagerAdapter;)V

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/String;

    invoke-virtual {v1, v2}, Lde/dealdoktor/app/activities/Details$DealPagerAdapter$GetPostsTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 133
    :cond_0
    invoke-static {p1}, Lde/dealdoktor/app/fragments/DetailFragment;->newInstance(I)Lde/dealdoktor/app/fragments/DetailFragment;

    move-result-object v0

    .line 135
    .local v0, df:Lde/dealdoktor/app/fragments/DetailFragment;
    sget-object v1, Lde/dealdoktor/app/activities/Details$DealPagerAdapter;->fragmentList:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 137
    return-object v0
.end method
